package main

import "fmt"

func main() {
	var arr [4][4]int
	arr[0][0] = 1
	arr[1][1] = 1
	arr[2][2] = 1
	arr[3][3] = 1
	for i := 0; i < len(arr); i++ {
		for j := 0; j < len(arr[0]); j++ {
			fmt.Print(arr[i][i], " ")
		}
		fmt.Println()
	}
	var arr3 [2][3]int = [2][3]int{{1, 2, 3}, {4, 5, 6}}
	//var arr3 [2][3]int = [...][3]int{{1,2,3},{4,5,6}}
	//arr3 :=[...][3]int{{1,2,3},{4,5,6}}
	for i := 0; i < len(arr3); i++ {
		for j := 0; j < len(arr3[i]); j++ {
			fmt.Print(arr3[i][j], " ")
		}
		fmt.Println()
	}
	for _, v := range arr3 {
		for i1, v1 := range v {
			fmt.Printf("i1=%v,v1=%v\n", i1, v1)
		}

	}
}
